# class Car:
#     """汽车类"""
#     def __init__(self, make, model, year):
#         """初始化汽车的属性"""
#         self.make = make # 厂商
#         self.model = model # 型号
#         self.year = year # 年份
#         self.odometer_reading = 0 # 里程数
#     def get_descriptive_name(self):
#         """返回整洁的描述性信息"""
#         long_name = f"{self.year} {self.make} {self.model}"
#         return long_name.title()
#     def read_odometer(self):
#         """打印一条消息，打印汽车的里程数"""
#         print(f"This car has {self.odometer_reading} miles on it.")
# if __name__ == '__main__':
#     car = Car('audi', 'a4', 2019)
#     print(car.get_descriptive_name())
#     car.odometer_reading = 23
#     car.read_odometer()

# class Sum:
#     """计算两个数的和"""
#     def __init__(self, a, b):
#         """初始化两个数"""
#         self.a = a
#         self.b = b
#     def sum(self):
#         """计算两个数的和"""
#         return self.a + self.b
# if __name__ == '__main__':
#     sum = Sum(1, 2)
#     print(sum.sum())

# class Car:
#     def run(self):
#         print("车在运行...")
# if __name__ == '__main__':
#     car = Car()
#     car.run()
#     car.color = "red"
#     car.num = "4"
#     print(f"车的颜色{car.color},车轮数{car.num}")

# class SweetPotato:
#     def __init__(self):
#         self.cook_time = 0
#         self.cook_state = "生的"
#         self.condiments = []
#     def cook(self,time):
#         self.cook_time += time
#         if 0<=self.cook_time<3:
#             self.cook_state = "生的"
#         elif 3<=self.cook_time<5:
#             self.cook_state = "半生不熟"
#         elif 5<=self.cook_time<8:
#             self.cook_state = "熟了"
#         else:
#             self.cook_state = "糊了"
#     def add_condiments(self,condiments):
#         self.condiments.append(condiments)
#     def __str__(self):
#         return f"这个地瓜被烤了{self.cook_time}分钟，当前的状态的{self.cook_state},添加了{self.condiments}"
# if __name__ == '__main__':
#     digua = SweetPotato()
#     print(digua)
#     digua.cook(2)
#     digua.add_condiments("白糖")
#     print(digua)
#     digua.cook(2)
#     digua.add_condiments("盐")
#     print(digua)
#     digua.cook(2)
#     digua.add_condiments("芝士")
#     print(digua)
#     digua.cook(2)
#     digua.add_condiments("折耳根")
#     print(digua)

print(len("abc"))